package com.home.statistics.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.google.gwt.core.client.GWT;

/**
 * User: volyn
 * Date: 11.03.12
 * Time: 15:22
 */
@RemoteServiceRelativePath("StatisticService")
public interface StatisticService extends RemoteService {
    /**
     * Utility/Convenience class.
     * Use StatisticService.App.getInstance() to access static instance of StatisticServiceAsync
     */
    public static class App {
        private static final StatisticServiceAsync ourInstance = (StatisticServiceAsync) GWT.create(StatisticService.class);

        public static StatisticServiceAsync getInstance() {
            return ourInstance;
        }
    }
}
